package MP.ASTs;

import MP.CompilationException;
import MP.lexicalanalysis.Token;

public class FuncDeclAST extends OneProcDeclAST {
	public TypeAST		ret;
	public FuncDeclAST(Token n,ParaListAST pl, TypeAST rt, VarDeclPartAST vdecl, ProDeclPartAST pro, CompStatAST comp) {
		name = n;
		para = pl;
		ret = rt;
		v  = vdecl;
		p = pro;
		c = comp;
		para.parent = v.parent = ret.parent = p.parent = c.parent = this;
	}


	public Object visit(Visitor v, Object o) throws CompilationException{
		return v.visitFuncDeclAST(this,o);
	}
}	